public class Test {
    public static void main(String[] args) {
        MyStack myStack=new MyStack();
        myStack.push(10);
        myStack.push(15);
        myStack.push(18);
        System.out.println(myStack.pop());//18
        System.out.println(myStack.peek());//15


    }
}
